// 约束对象规则
const mongoose = require('mongoose')

module.exports = new mongoose.Schema({
    name: {
        type: String,
        required: true,
        unique: true
    },
    password: {
        type: String,
        required: true,
    },
    r_date: {
        type:Date,
        default:Date.now()
    },
    enable: {
        type: Boolean,
        default:true,
    }
})